package bjtu.cit.bookshop.service;

import bjtu.cit.bookshop.entities.Order;
import bjtu.cit.bookshop.entities.OrderBook;

import java.util.List;

/**
 * Created by jia19 on 2015/9/21.
 */
public interface IOrderService {

    public int createAOrder(Order order, List<OrderBook> books);

    public Order getOrderById(int id);

    public List<Order> getOrderListByUserId(int id);

    public int getLength();

    public List<Order> getOrderList(int num, int offset);

    public List<OrderBook> getBookListByOrderId(int id);

    public int updateOrder(Order order);


}
